package com.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class MyController {
    @Autowired
    private  Date date;


    @RequestMapping("/")
    public String index()
    {
        return date.toString();
    }
}
